#include "CoCoA/library.H"
#include <iostream>
#include <cstdlib>
using namespace CoCoA;
using namespace std;

int main(){
	CoCoA::GlobalManager CoCoAFoundations;
	srand((unsigned long)&CoCoAFoundations);
	SparsePolyRing R = NewPolyRing(RingQ(), symbols("x","y"));
	RingElem* p=new RingElem(R);
	RingElem* q=new RingElem(indet(R,1));
	cout << *p << endl;
	cout << *q << endl;
	delete p;
	delete q;
	// delete p; error
	return 0;
}
